﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="ViewFeedBack" CodeBehind="ViewFeedBack.aspx.cs" %>

<%@ Register Assembly="AjaxControlLib" Namespace="AjaxControlLib" TagPrefix="cc2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Client Meeting Tool - Feedback </title>
    <link type="text/css" href="nac.css" rel="stylesheet">
    <style>
        body
        {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 9pt;
        }
        .Button
        {
            background-color: #1e8ce1;
            border: #0d5b97 1px solid;
            color: #FFFFFF;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 9pt;
            padding: 3px;
        }
		.Button_TopPad
        {
            background-color: #1e8ce1;
            border: #0d5b97 1px solid;
            color: #FFFFFF;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 9pt;
            padding: 3px;
			margin-top:5px;
			
        }
			.Button_TBPad
        {
            background-color: #1e8ce1;
            border: #0d5b97 1px solid;
            color: #FFFFFF;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 9pt;
            padding: 3px;
			margin-top:5px;
			margin-bottom:5px;
			
        }
		.Button_GridTBRPad
        {
            background-color: #1e8ce1;
            border: #0d5b97 1px solid;
            color: #fff;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 9pt;
       		margin-top:5px;
			margin-bottom:5px;
			margin-right:5px;
			
        }
        .tab1
        {
            background-image: url(Images/tabbg1.jpg);
            background-repeat: repeat-x;
            color: #000000;
        }
        .tab2
        {
            background-image: url(Images/tabbg2.jpg);
            background-repeat: repeat-x;
            color: #000000;
        }
		
        <%--.divattendee
        {
            display:none;
        }--%>
    </style>
    <style>
        .overlay
        {
            position: absolute;
            background-color: white;
            top: auto;
            left: auto;
            width: 100%;
            height: 100%;
            opacity: 0.8;
            -moz-opacity: 0.8;
            filter: alpha(opacity=60);
            -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
            z-index: 10000;
            text-align: center;
            padding-top: 25%;
        }
    </style>
</head>
<body>
    <div>
        <form id="form1" runat="server">
        <div id="divBanner">
            <cc2:Banner ID="Banner1" runat="server" Width="100%" />
        </div>
        <div>
            <asp:ToolkitScriptManager ID="scrMgrMaster" runat="server" EnablePartialRendering="true"
                EnablePageMethods="True" LoadScriptsBeforeUI="false">
            </asp:ToolkitScriptManager>
            <asp:UpdateProgress ID="uprgProgressBar" runat="server" DynamicLayout="true">
                <ProgressTemplate>
                    <div class="overlay">
                        <img src="_includes/images/prog.gif" />
                        Loading...
                    </div>
                </ProgressTemplate>
            </asp:UpdateProgress>
            <table width="99%">
                <tr>
                    <td class="GroupHeader" style="height: 18px; text-align: left;" colspan="4" valign="top">
                        Feedback Details
                    </td>
                </tr>
            </table>
            <asp:UpdatePanel ID="updEvent" runat="server">
                <ContentTemplate>
                    <table cellpadding="0" cellspacing="0" width="99%" style="margin-left: 10px;">
                        <tr style="padding-top: 5px;">
                            <td align="center">
                                Select Event
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlEvent" runat="server" AutoPostBack="true" Width="250px">
                                </asp:DropDownList>
                            </td>
                            <%--<td width="15%">
                            Select Meeting
                        </td>
                        <td width="50%">
                            <asp:DropDownList ID="ddlMeeting" runat="server" Width="250px">
                            </asp:DropDownList>
                        </td>--%>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td align="left" style="padding-top: 5px; padding-bottom: 5px;" colspan="3">
                                <asp:Button ID="btnSubmitt" Text="View Feedback" runat="server" OnClick="btnSubmitt_click"
                                    CssClass="Button" Width="120px" Visible="false" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4">
<%--                                <igtbl:UltraWebGrid ID="dgFeedback" runat="server" Visible="true" DisplayLayout-AutoGenerateColumns="false"
                                    DataKeyField="CreatedEventAttendeeID" OnPageIndexChanged="dgFeedback_PageIndexChanged"
                                    OnItemCommand="dgFeedback_ItemCommand">
                                    <DisplayLayout AllowUpdateDefault="No" BorderCollapseDefault="NotSet" CellClickActionDefault="NotSet"
                                        Name="dgFeedback" RowHeightDefault="21px" RowSelectorsDefault="No" TableLayout="Fixed"
                                        Version="3.00">
                                        <Pager AllowPaging="True" PageSize="10">
                                            <PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                                                <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White">
                                                </BorderDetails>
                                            </PagerStyle>
                                        </Pager>
                                        <HeaderStyleDefault BackColor="#11459E" BorderStyle="Solid" CustomRules="background-image:url(/ig_common/images/Office2003BlueBG.png);background-repeat:rep
                                eat-x;" Font-Bold="True" Font-Names="Arial" Font-Size="X-Small" ForeColor="#E1E8F5">
                                            <BorderDetails ColorLeft="173, 197, 235" ColorTop="173, 197, 235" WidthLeft="1px"
                                                WidthTop="1px" />
                                        </HeaderStyleDefault>
                                        <FrameStyle BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana"
                                            Font-Size="8pt">
                                        </FrameStyle>
                                        <FooterStyleDefault BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">
                                            <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
                                        </FooterStyleDefault>
                                        <EditCellStyleDefault BorderStyle="None" BorderWidth="0px">
                                        </EditCellStyleDefault>
                                        <SelectedRowStyleDefault CssClass="GridSelectedRow">
                                        </SelectedRowStyleDefault>
                                        <RowStyleDefault BorderColor="Black" BorderStyle="Solid" BorderWidth="1px">
                                            <Padding Left="3px" />
                                            <BorderDetails WidthLeft="0px" WidthTop="0px" />
                                        </RowStyleDefault>
                                        <RowAlternateStyleDefault BackColor="Azure">
                                        </RowAlternateStyleDefault>
                                        <ActivationObject BorderColor="" BorderWidth="">
                                        </ActivationObject>
                                    </DisplayLayout>
                                    <Bands>
                                        <igtbl:UltraGridBand AllowUpdate="No" AllowAdd="No" AllowDelete="No">
                                            <Columns>
                                                <igtbl:UltraGridColumn Key="CreatedEventAttendeeID" BaseColumnName="CreatedEventAttendeeID"
                                                    Hidden="true">
                                                </igtbl:UltraGridColumn>
                                                <igtbl:UltraGridColumn Key="Id" BaseColumnName="Id" Width="50">
                                                    <Header Caption="Sl No">
                                                    </Header>
                                                </igtbl:UltraGridColumn>
                                                <igtbl:UltraGridColumn Key="Name" BaseColumnName="Name" Width="300">
                                                    <Header Caption="Submitted Attendee Name">
                                                        <RowLayoutColumnInfo OriginX="1"></RowLayoutColumnInfo>
                                                    </Header>
                                                    <Footer>
                                                        <RowLayoutColumnInfo OriginX="1"></RowLayoutColumnInfo>
                                                    </Footer>
                                                </igtbl:UltraGridColumn>
                                                <igtbl:UltraGridColumn Key="CreatedDate" BaseColumnName="CreatedDate" Width="200">
                                                    <Header Caption="Submitted Date">
                                                        <RowLayoutColumnInfo OriginX="2"></RowLayoutColumnInfo>
                                                    </Header>
                                                    <Footer>
                                                        <RowLayoutColumnInfo OriginX="2"></RowLayoutColumnInfo>
                                                    </Footer>
                                                </igtbl:UltraGridColumn>
                                                <igtbl:TemplatedColumn CellButtonDisplay="Always" Width="70px">
                                                    <Header Caption="Feedback">
                                                        <RowLayoutColumnInfo OriginX="3"></RowLayoutColumnInfo>
                                                    </Header>
                                                    <CellTemplate>
                                                        <asp:ImageButton ID="imgShow" runat="server" ImageUrl="~/Images/show-feedback.png"
                                                            ToolTip="Show feedback" AlternateText="Show feedback" CommandName="ShowFeedBak"
                                                            Style="cursor: pointer;" />
                                                    </CellTemplate>
                                                    <Footer>
                                                        <RowLayoutColumnInfo OriginX="3"></RowLayoutColumnInfo>
                                                    </Footer>
                                                </igtbl:TemplatedColumn>
                                            </Columns>
                                            <RowTemplateStyle BackColor="White" BorderColor="White" BorderStyle="Ridge">
                                                <BorderDetails WidthBottom="3px" WidthLeft="3px" WidthRight="3px" WidthTop="3px" />
                                            </RowTemplateStyle>
                                            <AddNewRow View="NotSet" Visible="NotSet">
                                            </AddNewRow>
                                        </igtbl:UltraGridBand>
                                        <igtbl:UltraGridBand AddButtonCaption="Column0Column1Column2" Key="Column0Column1Column2">
                                            <AddNewRow View="NotSet" Visible="NotSet">
                                            </AddNewRow>
                                        </igtbl:UltraGridBand>
                                    </Bands>
                                </igtbl:UltraWebGrid>--%>
                                 <asp:GridView ID="dgFeedback" runat="server" AllowPaging="true" OnPageIndexChanging="dgFeedback_PageIndexChanged"
                                                                DataKeyField="CreatedEventAttendeeID" AutoGenerateColumns="false" PageSize="10" OnRowCommand="dgFeedback_ItemCommand"
                                                                ShowFooter="false" Width="70%" Visible="true" SelectedRowStyle-CssClass="GridSelectedRow"
                                                                AlternatingRowStyle-BackColor="Azure" PagerSettings-Mode="Numeric" PagerStyle-HorizontalAlign="Left">
                                                                <Columns>
                                                                    <asp:BoundField DataField="CreatedEventAttendeeID" Visible="false" />
                                                                    <asp:BoundField DataField="Id" ControlStyle-Width="50px" HeaderText="Sl No" />
                                                                    <asp:BoundField DataField="Name" ControlStyle-Width="300px" HeaderText="Submitted Attendee Name" />
                                                                    <asp:BoundField DataField="CreatedDate" ControlStyle-Width="200px" HeaderText="Submitted Date" />
                                                                    <asp:TemplateField HeaderText="Feedback">
                                                                        <ItemTemplate>
                                                                            <asp:ImageButton style="width:16px;height:16px;cursor: pointer;" ID="imgShow" runat="server" ToolTip="Show feedback"
                                                                                CommandName="ShowFeedBak"  CommandArgument='<%# Eval("CreatedEventAttendeeID") %>' AlternateText="Show feedback" ImageUrl="_includes/images/show-feedback.png"
                                                                                />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>                                                                  
                                                                </Columns>
                                                                <HeaderStyle BackColor="#11459E" BorderStyle="Solid" BorderWidth="1px" Font-Bold="true"
                                                                    Font-Names="Arial" Font-Size="X-Small" ForeColor="#E1E8F5" />
                                                                <RowStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" BackColor="White" />
                                                                <PagerStyle BackColor="#D1D0CE" Wrap="true" Font-Bold="true" HorizontalAlign="Left" />
                                                            </asp:GridView>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4">
                           <asp:GridView ID="dgFeedbackSummary" runat="server" AllowPaging="true" OnPageIndexChanging="dgFeedbackSummary_PageIndexChanged"
                                                                DataKeyField="FeedbackID" AutoGenerateColumns="false" PageSize="5" OnRowCommand="dgFeedbackSummary_ItemCommand"
                                                                ShowFooter="false" Width="95%" Visible="false" SelectedRowStyle-CssClass="GridSelectedRow"
                                                                AlternatingRowStyle-BackColor="Azure" PagerSettings-Mode="Numeric" PagerStyle-HorizontalAlign="Left">
                                                                <Columns>
                                                                    <asp:BoundField DataField="FeedbackID" Visible="false" />
                                                                    <asp:BoundField DataField="Id" ControlStyle-Width="50px" HeaderText="Sl No" />
                                                                    <asp:BoundField DataField="Name" ControlStyle-Width="300px" HeaderText="Attendee Name" />
                                                                    <asp:BoundField DataField="Company" ControlStyle-Width="150px" HeaderText="Company" />
                                                                    <asp:BoundField DataField="Host" ControlStyle-Width="150px" HeaderText="Host" />
                                                                    <asp:BoundField DataField="TAL" ControlStyle-Width="150px" HeaderText="TAL" />
                                                                    <asp:BoundField DataField="ClientAttendees" ControlStyle-Width="200px" HeaderText="Client Attendee/s " />
                                                                    <asp:TemplateField HeaderText="Export">
                                                                        <ItemTemplate>
                                                                            <asp:ImageButton ID="imgExport" runat="server" ImageUrl="_includes/Images/xlIcon.jpg" ToolTip="Export to Excel"
                                                            AlternateText="Export Excel" CommandName="ExportExcel" CommandArgument='<%# Eval("FeedbackID") %>' Style="cursor: pointer;" />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>    
                                                                    <asp:TemplateField HeaderText="Feedback">
                                                                        <ItemTemplate>
                                                                            <asp:ImageButton ID="imgShow" runat="server" ImageUrl="_includes/Images/show-feedback.png"
                                                            ToolTip="Show feedback" AlternateText="Show feedback" CommandArgument='<%# Eval("FeedbackID") %>' CommandName="ShowFeedBak"
                                                            Style="cursor: pointer;" />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>                                                                     
                                                                </Columns>
                                                                <HeaderStyle BackColor="#11459E" BorderStyle="Solid" BorderWidth="1px" Font-Bold="true"
                                                                    Font-Names="Arial" Font-Size="X-Small" ForeColor="#E1E8F5" />
                                                                <RowStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" BackColor="White" />
                                                                <PagerStyle BackColor="#D1D0CE" Wrap="true" Font-Bold="true" HorizontalAlign="Left" />
                                                            </asp:GridView>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                <asp:Panel ID="plFeedback" Visible="false" runat="server">
                                    <table width="800" id="tblDetails">
                                        <tr>
                                            <td width="340">
                                                <strong>Country :</strong>
                                            </td>
                                            <td width="448">
                                                <asp:Label ID="lblCountry" runat="server">
                                                </asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <strong>SubserviceLine :</strong>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblSSL" runat="server">
                                                </asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <strong>Primary Business Objectives / Challenges raised :</strong>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblBusinnessObj" runat="server">
                                                </asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <strong>Primary Tax Issues discussed :</strong>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblIssuesAddressed" runat="server">
                                                </asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <strong>Opportunity / Project Identified :</strong>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblOpportninty" runat="server">
                                                </asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <strong>Description of the Opportunity/Project</strong> :<td>
                                                    <asp:Label ID="lblDescofOpport" runat="server">
                                                    </asp:Label>
                                                </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <strong>Stage :</strong>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblstage" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <strong>Potential Tax Fees :</strong>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblPotentialTaxFees" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <strong>Probablility of a Win :</strong>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblProbWin" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <strong>Expected Timeframe :</strong>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblExpectedTimeFrame" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <strong>Next Steps :</strong>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblNextSteps" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <strong>Responsibility for taking it forward :</strong>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblResponsiblity" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <strong>Additonal Information :</strong>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblAdditionalInfo" runat="server"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
                <Triggers>
                    <asp:PostBackTrigger ControlID="dgFeedbackSummary" />
                </Triggers>
            </asp:UpdatePanel>
        </div>
        </form>
</body>
</html>
